﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="HomeArticlesAndTopics.ascx.cs"
    Inherits="CustomControls_HomeArticlesAndTopics" %>
<div class="left-col">
    <h3>
        <a href="#">Cele mai noi articole</a></h3>
    <asp:Repeater ID="repArticles" runat="server">
        <HeaderTemplate>
            <ul>
        </HeaderTemplate>
        <ItemTemplate>
            <li><a href="<%# Utils.BuildURL(PageType.Articole, ((Model.Articles)Container.DataItem).ID, ((Model.Articles)Container.DataItem).Title) %>"
                title="<%# DataBinder.Eval(Container.DataItem, "Title") %>">
                <%# DataBinder.Eval(Container.DataItem, "Title") %></a></li>
        </ItemTemplate>
        <FooterTemplate>
            </ul>
        </FooterTemplate>
    </asp:Repeater>
    <div align="center">
        <a target="_blank" href="#" title="Subscribe using any feed reader!">
            <img alt="AddThis Feed Button" border="0" height="16" src="http://s3.addthis.com/button1-rss.gif"
                width="125" /></a>
    </div>
</div>
<div class="right-col">
    <h3>
        <a href="/forum/Forums">Cele mai noi discutii pe forum</a></h3>
    <asp:Repeater ID="repHotTopics" runat="server">
        <HeaderTemplate>
            <ul>
        </HeaderTemplate>
        <ItemTemplate>
            <li><a href="/Forum/Forums/p/<%# DataBinder.Eval(Container.DataItem, "ThreadID") %>/<%# DataBinder.Eval(Container.DataItem, "PostID") %>.aspx#<%# DataBinder.Eval(Container.DataItem, "PostID") %>"
                title="<%# DataBinder.Eval(Container.DataItem, "Subject") %>">
                <%# DataBinder.Eval(Container.DataItem, "Subject")%></a></li>
        </ItemTemplate>
        <FooterTemplate>
            </ul>
        </FooterTemplate>
    </asp:Repeater>
    <div align="center">
        <a target="_blank" href="#" title="Subscribe using any feed reader!">
            <img src="http://s3.addthis.com/button1-rss.gif" alt="AddThis Feed Button" width="125"
                border="0" height="16" /></a>
    </div>
</div>